<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
	<%@include file="/jsp/common/jspCommonHeadSetting.jsp"%>
	<%@include file="/jsp/common/adminCommonHeadSetting.jsp"%>
	<title>network</title>
  </head>
  
  <body>
  <div id="wrap">
  	<%@include file="/jsp/common/header.jsp"%>
    <div id="content">
    	<%@include file="/jsp/common/adminLeftContent.jsp"%>
    	<div id="right_content">
    		<div class="title">
				根据用户名查找用户
			</div>
			<div id="input_area">
			<s:form action="/admin/getUserById.action" namespace="/">
				<div>
					<span class="input_line"><s:textfield label="用户名" name="username"></s:textfield></span>
				</div>
				<div>
					<span class="input_line"><s:submit name="submit" value="查找"></s:submit>
					</span>
				</div>
			</s:form>
			</div>
			<div class="title">
				查找用户
			</div>
			<div id="input_area">
			<s:form action="/admin/searchUser.action" namespace="/">
				<div>
					<span class="input_line"><s:textfield label="用户名" name="helper.username"></s:textfield></span>
				</div>
				<div>
					<span class="input_line"><s:textfield label="姓名" name="helper.name"></s:textfield></span>
				</div>
				<div>
					<span class="input_line"><s:textfield label="学校" name="helper.school"></s:textfield></span>
				</div>
				<div>
					<span class="input_line"><s:textfield label="学院" name="helper.college"></s:textfield></span>
				</div>
				<div>
					<span class="input_line"><s:textfield label="Email" name="helper.email"></s:textfield></span>
				</div>
				<div>
					<span class="input_line">
					<s:select label="类型" name="helper.role" list="#{'':'','A':'管理账号','U':'普通账号'}"
					listKey="key" listValue="value"/>
					</span>
				</div>
				<div>
					<span class="input_line"><s:submit name="submit" value="查找"></s:submit>
					</span>
				</div>
			</s:form>
			</div>
		</div>
    </div>
  </div>
  </body>
</html>